package com.xiaolin.designmode.decorator;

/**
 * @ClassName ConcreteDecorator
 * @Description 具体装饰角色
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/2
 * @Version 1.0
 */
public class ConcreteDecorator extends Decorator {
    public ConcreteDecorator(Component component) {
        super(component);
    }

    @Override
    public void work() {
        super.work();
        extra();
    }
    public void extra(){
        System.out.println("工作完了，擦擦汗");
    }
}
